package com.gk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.pojo.TbUserCoupon;
import com.eight.vo.UserCouponVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: GK
 * @date: 2023/3/1 9:41
 * @version:No1.0
 */
@Mapper
public interface TbUserCouponDao extends BaseMapper<TbUserCoupon> {
    /**
     * 条件分页查询
     * @param page 分页
     * @param userCouponVo 条件
     * @return 分页后的数据
     */
    Page<TbUserCoupon> selectAllUserCoupon(Page<TbUserCoupon> page,@Param("userCouponVo") UserCouponVo userCouponVo);




    List<TbUserCoupon> selectUserCon(@Param("user_name") String username);


    int deleteUserCon(@Param("user_name") String username,@Param("coupon_id") Integer couponId);

}
